package com.dxj1992.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ClearCache {

    @Autowired
    private RedisUtil redisUtil;

    public void clearAdminCache() {
        redisUtil.del("admin:menu:perms", "admin:menu:role");
    }
}
